package com.person.cloud.controller;

import com.person.common.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangfc
 * @date 2021/7/19 16:12
 */
@RestController
@RefreshScope
public class NacosConfigController {

    @Value("${config.info}")
    private String info;

    @GetMapping("/info")
    public CommonResult getInfo(){
        return CommonResult.ok(200,info,null);
    }
}
